約 5,816,104 件
https://w.atwiki.jp/anddoid/pages/71.html
set 関連タグ 使用例
https://w.atwiki.jp/wicky/pages/68.html
set …コントローラのデータをビューに渡す。
https://w.atwiki.jp/nicepaper/pages/27.html
IE、Firefox、GoogleChrome、Opera、Safariなどさまざまなブラウザが存在します。しかし、各ブラウザで初期段階で持っているCSSがあり、ブラウザの表示を悩ませてくれます。このようにならないためにも、多くのWebサイトはreset.cssというシートを作り、初期化しています。今回はこの初期化についてまとめていきます。 html5doctorのreset.css その他のCSSリセット html5doctorのreset.css 有名なところとして、Richard Clark氏のCSSがあります。このCSSを自分の読み込みたいCSS以前に読み込ませます。 ※以降に読み込ませてはいけません。自分の定義したCSSのほとんどがリセットされます(笑) 解説ページ:http //www.html5-memo.com/first-html5/html5-002/ Richard氏の解説ページ:http //html5doctor.com/html-5-reset-stylesheet/ ファイル名 reset.css /* html5doctor.com Reset Stylesheet v1.6.1 Last Updated 2010-09-17 Author Richard Clark - http //richclarkdesign.com Twitter @rich_clark */ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin 0; padding 0; border 0; outline 0; font-size 100%; vertical-align baseline; background transparent; } body { line-height 1; } article,aside,details,figcaption,figure, footer,header,hgroup,menu,nav,section { display block; } nav ul { list-style none; } blockquote, q { quotes none; } blockquote before, blockquote after, q before, q after { content ; content none; } a { margin 0; padding 0; font-size 100%; vertical-align baseline; background transparent; } /* change colours to suit your needs */ ins { background-color #ff9; color #000; text-decoration none; } /* change colours to suit your needs */ mark { background-color #ff9; color #000; font-style italic; font-weight bold; } del { text-decoration line-through; } abbr[title], dfn[title] { border-bottom 1px dotted; cursor help; } table { border-collapse collapse; border-spacing 0; } /* change border colour to suit your needs */ hr { display block; height 1px; border 0; border-top 1px solid #cccccc; margin 1em 0; padding 0; } input, select { vertical-align middle; } その他のCSSリセット 2014年のCSSリセット。スマートフォン等にも対応できるようになっている。 下のほうは適宜書き換えてください。 参照元:http //h-proton.com/?p=1726 @charset "utf-8"; html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin 0; padding 0; border 0; font-style normal; font-weight normal; font-size 100%; vertical-align baseline; } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display block; } html{ overflow-y scroll; } blockquote, q { quotes none; } blockquote before, blockquote after, q before, q after { content ; content none; } input, textarea,{ margin 0; padding 0; } ol, ul{ list-style none; } table{ border-collapse collapse; border-spacing 0; } caption, th{ text-align left; } a focus { outline none; } .clearfix after { content "."; display block; clear both; height 0; visibility hidden; } .clearfix { min-height 1px; } * html .clearfix { height 1px; /*¥*//*/ height auto; overflow hidden; /**/ } .both{ clear both; } .inline_block { display inline-block; *display inline; *zoom 1; } /* よく使うCSS start img { max-width 100%; } table { width 100%; } a,a hover { -webkit-transition 0.7s; -moz-transition 0.7s; -o-transition 0.7s; transition 0.7s; } a img hover { filter alpha(opacity=75); -moz-opacity 0.75; opacity 0.75; } よく使うCSS end ----- 時々使うCSS3 start --- テキストシャドウ { text-shadow 1px 1px 3px #000; } テキストシャドウ { text-shadow 1px 1px 3px #000; } ボックスシャドウ { -moz-box-shadow 1px 1px 3px #000; -webkit-box-shadow 1px 1px 3px #000; box-shadow 1px 1px 3px #000; } ボックスシャドウ内側 { -moz-box-shadow inset 1px 1px 3px #000; -webkit-box-shadow inset 1px 1px 3px #000; box-shadow inset 1px 1px 3px #000; } 角丸 { border-radius 8px; -webkit-border-radius 8px; -moz-border-radius 8px; } トランジション { -webkit-transition 1.5s; -moz-transition 1.5s; -o-transition 1.5s; transition 1.5s; } 透明 { filter alpha(opacity=25); -moz-opacity 0.25; opacity 0.25; } 背景のみ透明 { background-color rgba(255,255,255,0.2); } グラデーション { filter progid DXImageTransform.Microsoft.gradient(startColorstr = #ffffff , endColorstr = #000000 ); -ms-filter "progid DXImageTransform.Microsoft.gradient(startColorstr = #ffffff , endColorstr = #000000 )"; background-image -moz-linear-gradient(top, #ffffff, #000000); background-image -ms-linear-gradient(top, #ffffff, #000000); background-image -o-linear-gradient(top, #ffffff, #000000); background-image -webkit-gradient(linear, center top, center bottom, from(#ffffff), to(#000000)); background-image -webkit-linear-gradient(top, #ffffff, #000000); background-image linear-gradient(top, #ffffff, #000000); } スマホ対応 @media screen and (max-width 480px){ } @media screen and (max-width 320px){ } 時々使うCSS3 end */
https://w.atwiki.jp/ninja_arms/pages/40.html
CSS ./タイトル下に説明文追加
https://w.atwiki.jp/mellow11/pages/16.html
CSS #bf ブログ検索に戻る 更新日2007-01-16
https://w.atwiki.jp/madakozou/pages/4.html
css
https://w.atwiki.jp/nicepaper/pages/7.html
ここではhtmlに読み込ませたCSSを具体的にどのようにして記述していくかを述べていきます。 CSSの基本概要 セレクター名idとclassの違い CSSの運用面の実際 CSSの基本概要 まず、一行目に @charset; "utf-8"; と記述します。これによりこのスタイルシートがどの文字コードで書かれたものなのかを宣言します。 基本的にCSSは セレクター名{プロパティ名 値;} といった具合にどの部分に対する装飾なのかを書いていきます。 これは 何に対する❓{何の指示か❓: どれくらい❓;} といった意味をそれぞれ持ちます。 セレクター名idとclassの違い タグにてよく、 div id="nice" や p class="nice" というような表記を見かけます。それぞれの違いは何なのでしょうか。 classとidの違いは classは何度でも同じ名前を付けられる のに対して(例えば"nice"という名前) idは一つの名前を一度しか使ってはいけません。 classで同じ名前を付けておけばcssで同じクラスのものの装飾を一括指定できます。) 例えばhtmlにて p class="nice" ここの部分だけを装飾したい /p と記述したとします。ここの部分だけを記述するためには、 p.nice { font-color red; } とすればここの部分は赤文字で表示されます。そして、使いまわしも可能です。 div id="nice" ここの部分だけを装飾したい /div div#niceまたは#nice { height 15px; weight 15px; } ここではniceと名づけられたdiv要素の高さと横幅を指定しています。そして一度しか使ってはいけません。 また、CSSには「後に記述されたものが優先して適用される」というルールがあります。またこれについては、clearfixのページもご覧ください。 CSSの運用面の実際 HTML5で書かれたwebページはただ単にCSSで記述していったとしてもブラウザ間で多少の表示の違いがあります。 そのため、webページの多くは、 HTMLで自分で編集したCSSファイルの前に、ブラウザの表示をリセットするためのCSSの挿入 が使われています。 例: head 内 link rel="stylesheet" type="text/css" href="reset.css" link rel="stylesheet" type="text/css" href="自分の書きたい.css" /head このように使います。では、実際にreset.cssにはどのような内容があるのでしょうか。 詳しくは、CSSのリセットをご覧ください。
https://w.atwiki.jp/mathphysicschemistry/pages/161.html
/*! * ress.css • v1.2.2 * MIT License * github.com/filipelinhares/ress */ /* # ================================================================= # Global selectors # ================================================================= */ html { box-sizing border-box; overflow-y scroll; /* All browsers without overlaying scrollbars */ -webkit-text-size-adjust 100%; /* iOS 8+ */} *, before, after { background-repeat no-repeat; /* Set `background-repeat no-repeat` to all elements and pseudo elements */ box-sizing inherit;} before, after { text-decoration inherit; /* Inherit text-decoration and vertical align to before and after pseudo elements */ vertical-align inherit;} * { padding 0; /* Reset `padding` and `margin` of all elements */ margin 0;} /* # ================================================================= # General elements # ================================================================= */ /* Add the correct display in iOS 4-7.*/audio not([controls]) { display none; height 0;} hr { overflow visible; /* Show the overflow in Edge and IE */} /** Correct `block` display not defined for any HTML5 element in IE 8/9* Correct `block` display not defined for `details` or `summary` in IE 10/11* and Firefox* Correct `block` display not defined for `main` in IE 11*/article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary { display block;} summary { display list-item; /* Add the correct display in all browsers */} small { font-size 80%; /* Set font-size to 80% in `small` elements */} [hidden],template { display none; /* Add the correct display in IE */} abbr[title] { border-bottom 1px dotted; /* Add a bordered underline effect in all browsers */ text-decoration none; /* Remove text decoration in Firefox 40+ */} a { background-color transparent; /* Remove the gray background on active links in IE 10 */ -webkit-text-decoration-skip objects; /* Remove gaps in links underline in iOS 8+ and Safari 8+ */} a active,a hover { outline-width 0; /* Remove the outline when hovering in all browsers */} code,kbd,pre,samp { font-family monospace, monospace; /* Specify the font family of code elements */} b,strong { font-weight bolder; /* Correct style set to `bold` in Edge 12+, Safari 6.2+, and Chrome 18+ */} dfn { font-style italic; /* Address styling not present in Safari and Chrome */} /* Address styling not present in IE 8/9 */mark { background-color #ff0; color #000;} /* https //gist.github.com/unruthless/413930 */sub,sup { font-size 75%; line-height 0; position relative; vertical-align baseline;} sub { bottom -0.25em;} sup { top -0.5em;} /* # ================================================================= # Forms # ================================================================= */ input { border-radius 0;} /* Apply cursor pointer to button elements */button,[type="button"],[type="reset"],[type="submit"],[role="button"] { cursor pointer;} /* Replace pointer cursor in disabled elements */[disabled] { cursor default;} [type="number"] { width auto; /* Firefox 36+ */} [type="search"] { -webkit-appearance textfield; /* Safari 8+ */} [type="search"] -webkit-search-cancel-button,[type="search"] -webkit-search-decoration { -webkit-appearance none; /* Safari 8 */} textarea { overflow auto; /* Internet Explorer 11+ */ resize vertical; /* Specify textarea resizability */} button,input,optgroup,select,textarea { font inherit; /* Specify font inheritance of form elements */} optgroup { font-weight bold; /* Restore the font weight unset by the previous rule. */} button { overflow visible; /* Address `overflow` set to `hidden` in IE 8/9/10/11 */} /* Remove inner padding and border in Firefox 4+ */button -moz-focus-inner,[type="button"] -moz-focus-inner,[type="reset"] -moz-focus-inner,[type="submit"] -moz-focus-inner { border-style 0; padding 0;} /* Replace focus style removed in the border reset above */button -moz-focusring,[type="button"] -moz-focus-inner,[type="reset"] -moz-focus-inner,[type="submit"] -moz-focus-inner { outline 1px dotted ButtonText;} button,html [type="button"], /* Prevent a WebKit bug where (2) destroys native `audio` and `video`controls in Android 4 */[type="reset"],[type="submit"] { -webkit-appearance button; /* Correct the inability to style clickable types in iOS */} button,select { text-transform none; /* Firefox 40+, Internet Explorer 11- */} /* Remove the default button styling in all browsers */button,input,select,textarea { background-color transparent; border-style none; color inherit;} /* Style select like a standard input */select { -moz-appearance none; /* Firefox 36+ */ -webkit-appearance none; /* Chrome 41+ */} select -ms-expand { display none; /* Internet Explorer 11+ */} select -ms-value { color currentColor; /* Internet Explorer 11+ */} legend { border 0; /* Correct `color` not being inherited in IE 8/9/10/11 */ color inherit; /* Correct the color inheritance from `fieldset` elements in IE */ display table; /* Correct the text wrapping in Edge and IE */ max-width 100%; /* Correct the text wrapping in Edge and IE */ white-space normal; /* Correct the text wrapping in Edge and IE */} -webkit-file-upload-button { -webkit-appearance button; /* Correct the inability to style clickable types in iOS and Safari */ font inherit; /* Change font properties to `inherit` in Chrome and Safari */} [type="search"] { -webkit-appearance textfield; /* Correct the odd appearance in Chrome and Safari */ outline-offset -2px; /* Correct the outline style in Safari */} /* # ================================================================= # Specify media element style # ================================================================= */ img { border-style none; /* Remove border when inside `a` element in IE 8/9/10 */} /* Add the correct vertical alignment in Chrome, Firefox, and Opera */progress { vertical-align baseline;} svg not( root) { overflow hidden; /* Internet Explorer 11- */} audio,canvas,progress,video { display inline-block; /* Internet Explorer 11+, Windows Phone 8.1+ */} /* # ================================================================= # Accessibility # ================================================================= */ /* Hide content from screens but not screenreaders */@media screen { [hidden~="screen"] { display inherit; } [hidden~="screen"] not( active) not( focus) not( target) { position absolute !important; clip rect(0 0 0 0) !important; }} /* Specify the progress cursor of updating elements */[aria-busy="true"] { cursor progress;} /* Specify the pointer cursor of trigger elements */[aria-controls] { cursor pointer;} /* Specify the unstyled cursor of disabled, not-editable, or otherwise inoperable elements */[aria-disabled] { cursor default;} /* # ================================================================= # Selection # ================================================================= */ /* Specify text selection background color and omit drop shadow */ -moz-selection { background-color #b3d4fc; /* Required when declaring selection */ color #000; text-shadow none;} selection { background-color #b3d4fc; /* Required when declaring selection */ color #000; text-shadow none;}
https://w.atwiki.jp/oboegaki1002/pages/33.html
CSS3実用的コードまとめ カラムレイアウト「display box」 すべてのボックスの高さを揃えるということがとても容易にできるようになりました。 CSS3 のボックス要素で 3 カラムレイアウトを作るのに必要なのは、極端に言えば display box; と指定するだけ です。 そうすると、中に内包されている div※が勝手に横並びになり、かつ一番長い div に追従して(つまり display box; と指定した親要素の高さに追従して)高さが揃います。 ※正確にはブロック要素に対して、です。なので、div でなくても p でも同様の結果になります。 ボックスの表示順序を制御する「box-ordinal-group」 box-ordinal-group 1;と指定すれば、ボックス要素内でどこに書かれていても一番左側に表示されます。 段組み「column-count」 従来の段組はfloatやpositionを利用して行っていましたが、このプロパティが導入されると、段組レイアウトがぐっと楽になります。 column-count 3[段数]; column-width 200px[幅]; column-gap 50px[段組の間隔]; column-rule 5px[段組間のボーダーサイズ] dotted[段組間のボーダースタイル] #333[段組間のボーダー色]; 角丸やグラデーションを組み合わせたボタン CSSで押し心地のいいボタン http //jsdo.it/grfxdsgn/nCa2 CSS Only Download Button http //jsdo.it/tetsuwo/bK1Q border-radius 10px[角丸の半径]; ←角丸 background linear-gradient(top[方向], #990[開始色], #066[終了色]); ←線形グラデーション background radial-gradient(開始位置と角度, 形状とサイズ, 開始色, 途中色, 終了色); ←円形グラデーション text-shadow 1px[横方向のずれ] 1px[下方向のずれ] 3px[ぼかし具合] #333[影の色]; ←テキストに影 CSS3をつかったUIパターン リングメニューをCSSで実装してみる http //jsdo.it/edo_m18/9Whu CSSだけでDropDownMenu! http //jsdo.it/calmbooks/qvhT CSS3 タブ http //jsdo.it/rus/kYf6 transform rotate(deg)[回転] scale(xy[x,y])[拡大・縮小] skew(deg)[X軸,Y軸へのゆがみ translate(xy[x,y])[移動]; ←要素の2D変形、3D変形 transition background-color[どの要素を変化させるか] 1s[変化をどれくらいで表現するか] linear[変化の具合]; ←時間的変化 要素ごとの変更が容易に「 nth-child」 li nth-child(even){background-color blue;} [偶数(even)番目のリスト背景を青に] li nth-child(5){background-color blue;} [5番目のリスト背景を青に] li nth-child(4n+1){background-color blue;} [4n+1番目のリスト背景を青に] li nth-last-child(2){background-color blue;} [最後から2番目のリスト背景を青に] li nth-child(-n+5){background-color blue;} [5番目までのリスト背景を青に] 要素の透過度を指定「opacity」 透明度は、0.0(完全に透明)~1.0(完全に不透明)の数値で指定します。この範囲からはみ出した値を指定しても範囲内に収められます。 透明効果をオブジェクト全体ではなく、背景色やボーダー色に個別に適用したい場合には、rgba()で指定することができます。 opacity 0.9[透過度を90%に];
https://w.atwiki.jp/kakis/pages/322.html
set /// / 殺す 2 \ 13 seren klel sot \ [ yuo ] \ onを殺す \ [ iyuan ] \ 殺された \